package com.library.lockProvider.service.impl;

import com.library.lockProvider.mapper.StuInfoMapper;
import com.library.lockProvider.pojo.StuInfo;
import com.library.lockProvider.service.StuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StuInfoServiceImpl implements StuInfoService {
    @Autowired
    StuInfoMapper stuInfoMapper;

    @Override
    public StuInfo findStuInfoByIdAndPassword(String s_id, String password) {
        return stuInfoMapper.findStuInfoByIdAndPassword(s_id,password);
    }

    @Override
    public int updateStudentPassword(String s_id, String password) {
        return stuInfoMapper.updateStudentPassword(s_id,password);
    }
}
